//
//  YDYMeViewCell.m
//  DYSisterAPP
//
//  Created by 杨德勇 on 16/7/31.
//  Copyright © 2016年 杨德勇. All rights reserved.
//

#import "YDYMeViewCell.h"


@implementation YDYMeViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.textLabel.textColor = [UIColor darkGrayColor];
    }
    return self;
}

-(void)layoutSubviews{
    [super layoutSubviews ];
    
    if (self.imageView.image == nil)return;
    //设置图片在cell上面的间隔
    self.imageView.ydy_y =YDYSmallMargin;
    self.imageView.ydy_height = self.ydy_height - 2 * YDYSmallMargin;
    self.imageView.ydy_width  = self.imageView.ydy_height;
    self.backgroundView = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"mainCellBackground"]];
    [self.backgroundView sizeToFit];
    
}

@end
